package a.f.l.a;

import a.d.t;

public class eb
{
  private final double a;
  private final double c;
  public static int d;
  
  public eb(double paramDouble1, double paramDouble2)
  {
    this.a = Math.min(paramDouble1, paramDouble2);
    this.c = Math.max(paramDouble1, paramDouble2);
  }
  
  public double a()
  {
    return this.a;
  }
  
  public double b()
  {
    return this.c;
  }
  
  public double c()
  {
    return 0.5D * (this.a + this.c);
  }
  
  public boolean a(double paramDouble)
  {
    boolean bool = sb.e;
    if ((bool) || (paramDouble >= this.a)) {
      if (bool) {}
    }
    return paramDouble <= this.c;
  }
  
  public double d()
  {
    return this.c - this.a;
  }
  
  public boolean a(eb parameb)
  {
    return a(parameb, 0.0D);
  }
  
  public boolean a(eb parameb, double paramDouble)
  {
    boolean bool = sb.e;
    if ((bool) || (this.a + paramDouble <= parameb.c)) {
      if (bool) {}
    }
    return this.c - paramDouble >= parameb.a;
  }
  
  public double b(double paramDouble)
  {
    boolean bool = sb.e;
    if (!bool)
    {
      if (paramDouble < this.a) {
        return this.a - paramDouble;
      }
      if (bool) {}
    }
    else if (paramDouble > this.c)
    {
      return paramDouble - this.c;
    }
    return 0.0D;
  }
  
  public double b(eb parameb)
  {
    boolean bool = sb.e;
    if (!bool)
    {
      if (this.c < parameb.a) {
        return parameb.a - this.c;
      }
      if (bool) {}
    }
    else if (this.a > parameb.c)
    {
      return this.a - parameb.c;
    }
    return 0.0D;
  }
  
  public boolean c(eb parameb)
  {
    return b(parameb, 1.0E-006D);
  }
  
  public boolean b(eb parameb, double paramDouble)
  {
    boolean bool = sb.e;
    if ((bool) || (parameb.a - paramDouble < this.a)) {
      if (bool) {}
    }
    return parameb.c + paramDouble > this.c;
  }
  
  public double c(double paramDouble)
  {
    boolean bool = sb.e;
    if (!bool)
    {
      if (paramDouble < this.a) {
        return this.a;
      }
      if (bool) {}
    }
    else if (paramDouble > this.c)
    {
      return this.c;
    }
    return paramDouble;
  }
  
  public boolean d(eb parameb)
  {
    if (!sb.e) {}
    return this.c < parameb.a;
  }
  
  public boolean e(eb parameb)
  {
    if (!sb.e) {}
    return this.a > parameb.c;
  }
  
  public String toString()
  {
    return "[" + this.a + ", " + this.c + "]";
  }
  
  public boolean f(eb parameb)
  {
    return c(parameb, 1.0E-006D);
  }
  
  public boolean c(eb parameb, double paramDouble)
  {
    boolean bool = sb.e;
    if ((bool) || (Math.abs(this.a - parameb.a) < paramDouble)) {
      if (bool) {}
    }
    return Math.abs(this.c - parameb.c) < paramDouble;
  }
  
  public static eb a(eb parameb1, eb parameb2)
  {
    if (!sb.e) {
      if (!parameb1.a(parameb2)) {
        return null;
      }
    }
    return new eb(Math.max(parameb1.a, parameb2.a), Math.min(parameb1.c, parameb2.c));
  }
  
  public static eb b(eb parameb1, eb parameb2)
  {
    return new eb(Math.min(parameb1.a, parameb2.a), Math.max(parameb1.c, parameb2.c));
  }
  
  public static eb d(eb parameb, double paramDouble)
  {
    return new eb(Math.min(parameb.a, paramDouble), Math.max(parameb.c, paramDouble));
  }
  
  public static eb c(eb parameb1, eb parameb2)
  {
    double d1 = Math.min(parameb1.c, parameb2.c);
    double d2 = Math.max(parameb1.a, parameb2.a);
    if (d1 > d2) {
      return null;
    }
    return new eb(d1, d2);
  }
  
  public static t d(eb parameb1, eb parameb2)
  {
    return new t(parameb1.a, parameb2.a, parameb1.d(), parameb2.d());
  }
  
  public boolean equals(Object paramObject)
  {
    boolean bool = sb.e;
    if (!bool) {
      if (this == paramObject) {
        return true;
      }
    }
    if (paramObject != null)
    {
      if (bool) {
        break label37;
      }
      if (getClass() == paramObject.getClass()) {}
    }
    else
    {
      return false;
    }
    label37:
    eb localeb = (eb)paramObject;
    if (!bool) {
      if (a(localeb.c, this.c) != 0) {
        return false;
      }
    }
    if (!bool) {
      if (a(localeb.a, this.a) != 0) {
        return false;
      }
    }
    return true;
  }
  
  public int hashCode()
  {
    boolean bool = sb.e;
    long l = (bool) || (this.a != 0.0D) ? Double.doubleToLongBits(this.a) : 0L;
    int i = (int)(l ^ l >>> 32);
    l = (bool) || (this.c != 0.0D) ? Double.doubleToLongBits(this.c) : 0L;
    i = 31 * i + (int)(l ^ l >>> 32);
    return i;
  }
  
  private static int a(double paramDouble1, double paramDouble2)
  {
    boolean bool = sb.e;
    if (!bool)
    {
      if (paramDouble1 > paramDouble2) {
        return 1;
      }
      if (bool) {}
    }
    else if (paramDouble1 < paramDouble2)
    {
      return -1;
    }
    long l1 = Double.doubleToLongBits(paramDouble1);
    long l2 = Double.doubleToLongBits(paramDouble2);
    if (!bool) {}
    if (!bool) {}
    return l1 > l2 ? 1 : l1 == l2 ? 0 : -1;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.l.a.eb
 * JD-Core Version:    0.7.0.1
 */